object fmCustomerLoanSetting: TfmCustomerLoanSetting
  Left = 0
  Top = 0
  Caption = 'Customer Loan Setting'
  ClientHeight = 538
  ClientWidth = 730
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'Tahoma'
  Font.Style = []
  FormStyle = fsMDIChild
  OldCreateOrder = False
  Position = poMainFormCenter
  Visible = True
  OnCloseQuery = FormCloseQuery
  OnCreate = FormCreate
  PixelsPerInch = 96
  TextHeight = 13
  object Label13: TLabel
    Left = 17
    Top = 16
    Width = 61
    Height = 13
    Caption = 'Customers'
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clWindowText
    Font.Height = -11
    Font.Name = 'Tahoma'
    Font.Style = [fsBold]
    ParentFont = False
  end
  object Label14: TLabel
    Left = 17
    Top = 173
    Width = 71
    Height = 13
    Caption = 'Loan Setting'
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clWindowText
    Font.Height = -11
    Font.Name = 'Tahoma'
    Font.Style = [fsBold]
    ParentFont = False
  end
  object Panel1: TPanel
    Left = 17
    Top = 321
    Width = 593
    Height = 201
    TabOrder = 0
    object Label2: TLabel
      Left = 31
      Top = 48
      Width = 74
      Height = 13
      Caption = '&Customer Code'
    end
    object Label1: TLabel
      Left = 33
      Top = 74
      Width = 63
      Height = 13
      Caption = '&Loan Amount'
    end
    object Label3: TLabel
      Left = 249
      Top = 74
      Width = 39
      Height = 13
      Caption = '&Interest'
    end
    object Label4: TLabel
      Left = 33
      Top = 101
      Width = 30
      Height = 13
      Caption = '&Period'
    end
    object Label5: TLabel
      Left = 185
      Top = 101
      Width = 57
      Height = 13
      Caption = 'Period &Type'
    end
    object Label6: TLabel
      Left = 343
      Top = 101
      Width = 70
      Height = 13
      Caption = '&Days of Period'
    end
    object Label7: TLabel
      Left = 377
      Top = 74
      Width = 72
      Height = 13
      Caption = 'Paying &Amount'
    end
    object Label8: TLabel
      Left = 33
      Top = 128
      Width = 58
      Height = 13
      Caption = '&Installments'
    end
    object Label9: TLabel
      Left = 185
      Top = 128
      Width = 117
      Height = 13
      Caption = '&Payment Per Installment'
    end
    object Label10: TLabel
      Left = 33
      Top = 155
      Width = 98
      Height = 13
      Caption = '&Last Period Payment'
    end
    object Label11: TLabel
      Left = 350
      Top = 74
      Width = 11
      Height = 13
      Caption = '%'
    end
    object Label12: TLabel
      Left = 17
      Top = 8
      Width = 71
      Height = 13
      Caption = 'Loan Setting'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'Tahoma'
      Font.Style = [fsBold]
      ParentFont = False
    end
    object dblcbCustomerCode: TDBLookupComboBox
      Left = 111
      Top = 44
      Width = 145
      Height = 21
      KeyField = 'CUSTOMER_CODE'
      ListField = 'CUSTOMER_CODE'
      ListSource = dsCustomers
      TabOrder = 0
    end
    object txtLoanAmount: TEdit
      Left = 111
      Top = 71
      Width = 121
      Height = 21
      Alignment = taRightJustify
      NumbersOnly = True
      TabOrder = 1
      Text = '0.00'
      OnExit = txtLoanAmountExit
    end
    object txtInterest: TEdit
      Left = 294
      Top = 71
      Width = 50
      Height = 21
      Alignment = taRightJustify
      NumbersOnly = True
      TabOrder = 2
      Text = '0.00'
      OnExit = txtInterestExit
    end
    object txtPeriod: TEdit
      Left = 111
      Top = 98
      Width = 50
      Height = 21
      Alignment = taRightJustify
      NumbersOnly = True
      TabOrder = 3
      Text = '30'
      OnChange = txtPeriodChange
    end
    object cbPeriodType: TComboBox
      Left = 248
      Top = 98
      Width = 73
      Height = 21
      Style = csDropDownList
      DropDownCount = 10
      ItemIndex = 0
      MaxLength = 50
      TabOrder = 4
      Text = 'DAY'
      OnChange = cbPeriodTypeChange
      Items.Strings = (
        'DAY'
        'WEEK'
        'MONTH'
        'YEAR')
    end
    object txtDaysOfPeriod: TEdit
      Left = 419
      Top = 98
      Width = 50
      Height = 21
      Alignment = taRightJustify
      NumbersOnly = True
      TabOrder = 5
      Text = '1'
      OnChange = txtDaysOfPeriodChange
    end
    object UpDown1: TUpDown
      Left = 469
      Top = 98
      Width = 16
      Height = 21
      Associate = txtDaysOfPeriod
      Min = 1
      Position = 1
      TabOrder = 6
    end
    object txtPayingAmount: TEdit
      Left = 455
      Top = 71
      Width = 114
      Height = 21
      Alignment = taRightJustify
      NumbersOnly = True
      ReadOnly = True
      TabOrder = 7
      Text = '0.00'
      OnChange = txtPayingAmountChange
    end
    object txtInstallments: TEdit
      Left = 111
      Top = 125
      Width = 50
      Height = 21
      Alignment = taRightJustify
      NumbersOnly = True
      TabOrder = 8
      Text = '30'
      OnChange = txtInstallmentsChange
    end
    object txtPaymentPerInstallment: TEdit
      Left = 308
      Top = 125
      Width = 114
      Height = 21
      Alignment = taRightJustify
      NumbersOnly = True
      ReadOnly = True
      TabOrder = 9
      Text = '0.00'
    end
    object txtLastPeriodPayment: TEdit
      Left = 137
      Top = 152
      Width = 114
      Height = 21
      Alignment = taRightJustify
      NumbersOnly = True
      ReadOnly = True
      TabOrder = 10
      Text = '0.00'
    end
  end
  object DBGrid1: TDBGrid
    Left = 17
    Top = 35
    Width = 696
    Height = 120
    DataSource = dsCustomers
    Options = [dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgConfirmDelete, dgCancelOnExit, dgTitleClick, dgTitleHotTrack]
    TabOrder = 1
    TitleFont.Charset = DEFAULT_CHARSET
    TitleFont.Color = clWindowText
    TitleFont.Height = -11
    TitleFont.Name = 'Tahoma'
    TitleFont.Style = []
    OnCellClick = DBGrid1CellClick
  end
  object DBGrid2: TDBGrid
    Left = 17
    Top = 192
    Width = 696
    Height = 121
    DataSource = dsLoanSettings
    Options = [dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgConfirmDelete, dgCancelOnExit, dgTitleClick, dgTitleHotTrack]
    TabOrder = 2
    TitleFont.Charset = DEFAULT_CHARSET
    TitleFont.Color = clWindowText
    TitleFont.Height = -11
    TitleFont.Name = 'Tahoma'
    TitleFont.Style = []
    OnCellClick = DBGrid2CellClick
  end
  object btnNew: TButton
    Left = 628
    Top = 319
    Width = 75
    Height = 25
    Caption = '&New'
    TabOrder = 3
    OnClick = btnNewClick
  end
  object btnEdit: TButton
    Left = 628
    Top = 350
    Width = 75
    Height = 25
    Caption = '&Edit'
    TabOrder = 4
    OnClick = btnEditClick
  end
  object btnDelete: TButton
    Left = 628
    Top = 381
    Width = 75
    Height = 25
    Caption = '&Delete'
    TabOrder = 5
    OnClick = btnDeleteClick
  end
  object btnSave: TButton
    Left = 628
    Top = 412
    Width = 75
    Height = 25
    Caption = '&Save'
    TabOrder = 6
    OnClick = btnSaveClick
  end
  object btnClose: TButton
    Left = 628
    Top = 443
    Width = 75
    Height = 25
    Caption = '&Close'
    TabOrder = 7
    OnClick = btnCloseClick
  end
  object ADConnection1: TADConnection
    Params.Strings = (
      'Database=emarket_mylong'
      'User_Name=emarket_mylong'
      'Password=mylong1117'
      'Server=e-marketkhas.com'
      'DriverID=MySQL')
    ResourceOptions.AssignedValues = [rvAutoReconnect]
    ResourceOptions.AutoReconnect = True
    LoginPrompt = False
    Left = 568
    Top = 64
  end
  object ADGUIxWaitCursor1: TADGUIxWaitCursor
    Left = 656
    Top = 64
  end
  object ADPhysMySQLDriverLink1: TADPhysMySQLDriverLink
    Left = 656
    Top = 120
  end
  object ADPhysIBDriverLink1: TADPhysIBDriverLink
    DriverID = 'Firebird'
    VendorHome = 'C:\Program Files\Firebird\Firebird_2_5'
    VendorLib = 'fbclient.dll'
    Left = 568
    Top = 120
  end
  object dsCustomers: TDataSource
    DataSet = adtCustomers
    Left = 568
    Top = 176
  end
  object adtCustomers: TADTable
    IndexFieldNames = 'ID'
    Connection = ADConnection1
    UpdateOptions.UpdateTableName = 'customers'
    TableName = 'customers'
    Left = 656
    Top = 176
  end
  object qrySQL: TADQuery
    Connection = ADConnection1
    Left = 568
    Top = 296
  end
  object dsLoanSettings: TDataSource
    DataSet = adtLoanSettings
    Left = 568
    Top = 232
  end
  object adtLoanSettings: TADTable
    IndexFieldNames = 'CUSTOMER_CODE'
    MasterSource = dsCustomers
    MasterFields = 'CUSTOMER_CODE'
    Connection = ADConnection1
    UpdateOptions.UpdateTableName = 'customerloansettings'
    TableName = 'customerloansettings'
    Left = 656
    Top = 232
  end
end
